import { defHttp } from '/@/utils/http/axios';

enum Api {
  list = '/sys/project/list',
  queryById = '/sys/project/queryById',
  UserList = '/sys/user/list',
  add = '/sys/project/add',
  edit = '/sys/project/edit',
  selectProject = '/sys/project/select/list',
  querySysUserSetByUserId = '/sys/user/set/querySysUserSetByUserId',
  saveSysUserSet = '/sys/user/set/saveSysUserSet',
}

export const list = (params) => defHttp.get({ url: Api.list, params });
export const queryById = (params) => defHttp.get({ url: Api.queryById, params });
export const UserList = () => defHttp.get({ url: Api.UserList });
export const add = (params) => defHttp.post({ url: Api.add, params });
export const editAPi = (params) => defHttp.post({ url: Api.edit, params });
export const selectProject = (params) => defHttp.get({ url: Api.selectProject, params });
export const querySysUserSetByUserId = (params) => defHttp.get({ url: Api.querySysUserSetByUserId, params });
export const saveSysUserSet = (params) => defHttp.post({ url: Api.saveSysUserSet, params });
